freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

軟件設(shè)計說明書(例)(編輯修改稿)

2024-09-01 16:37 本頁面
 

【文章內(nèi)容簡介】 給出本系統(tǒng)內(nèi)所使用的每個數(shù)據(jù)結(jié)構(gòu)的名稱、標識符以及它們之中每個數(shù)據(jù)項、記錄、文卷和系的標識、定義、長度及它們之間的層次的或表格的相互關(guān)系。客戶端類圖:windowForm:FormPrivate: userLogDialog userNametextBox userPasswordtextBox userlogOKbotton userlogCanselbutton tabPage MenuBar stockRealtimeGraphitem stock Quote Dialog dataGridView userBuyStockID userBuyStockcount userBuyStockprice userBuyStockButton ...sell userStocklistView userStockLookButton send Mesto Server(string Info) //該函數(shù)用來向主機發(fā)送請求 協(xié)議U:發(fā)送用戶名,密碼 B:buy股票id,count,price,user S: sell.... Q:查詢信息 Receive MesFromServer() (接上)MD5encrypt(string)//以下都要通過sendMestoServer//向主機發(fā)送信息logOK_press(event,handle)。stockQuoteitem_press(e,h)。buyStockButton_press(e,h)。sellStockButton_press(e,h)。stocklookButton_press(e,h)。//////該函數(shù)調(diào)用drawPicture畫圖stockRealtimeGraphitem_press(e,h)Class RealTime GraphPrivate stockID//動態(tài)數(shù)組存儲股票價格 ArrayList stockPrice[]Public://在windowform類中recievemess后更新當前價格,即在數(shù)組后添加一項最新價格updatePrice(price,sotckPrice) drawPicture(stockID,stockPrice) Class stockData 訂單號 public int ListID。 public int UsrID。 public string StockIndex。 public flout Price。 public int Count。 public bool Isbuy。該類即為向服務(wù)端傳送數(shù)據(jù)時的包服務(wù)器端StockQueuePrivate stockData data stockData nextPublic DeleteQueueHead()。 AddStockData()。 Class TradeService該類還要補充若干個StockQueue類型的成員變量private void StartListening() { byte[] ipadre = new byte[] { 10, 82, 14, 47}。 IPAddress ip=new IPAddress(ipadre)。 m_Tcplisten = new TcpListener(ip,m_Port)。 ()。 while (true) { try { Socket s = ()。 clientSocket = s。 m_serverThread = new Thread(new ThreadStart(serviceClient))。//多線程deal各個連接用戶的socket ()。 } catch (Exception E) { (())。 } } }如以上startlistening代碼所示,監(jiān)聽創(chuàng)造一個連接客戶端的套接字,再用多線程處理該連接,而服務(wù)器端則繼續(xù)監(jiān)聽新的套接字。這樣主要的交易代碼就可以放入ServiceClient這個函數(shù)中,當有新客戶信息連入時,即可進行查詢數(shù)據(jù)庫,對比插入股票隊列等工作Class ClientInfo//這個類記錄了客戶端的socket 數(shù)據(jù)訪問層類圖Class ADOSQLserverPrivate dataSet //ds下可有4個dataTable userTable stockTable User_stockTable tempTablePublic:////驗證用戶信息 Bool CheckUserlogin(string usridstring password)。 Bool CheckUserMoney(string userID)。 Bool CheckUserStockCount(string userID)。////交易成功修改用戶和股票信息 Void updateUserTable(Cla
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1