❶ 推薦一本計算機網路書或者優秀的視頻教程給我
我是計算機專業的,上學期剛學的《計算機網咯》 謝希仁的 我們學的是第五版 老師說第四版是最經典的 我上課基本沒聽 後來自己看書看懂的 寫的還是比較清晰明了 只看一遍只會有大概結構 多看幾遍才能了解一些細節
❷ 求C#網路編程視頻教程!!!!
何需視頻?
1.簡單伺服器端
/*
using System.Data;
using System.Net.Sockets;
using System.Net;
using System.Threading;
*/
private static int port = %%2;
private static Thread thThreadRead;
private static TcpListener TcpListen;
private static bool bListener = true;
private static Socket stRead;
private static void Listen()
{
try
{
TcpListen = new TcpListener(port);
TcpListen.Start();
stRead = TcpListen.AcceptSocket();
EndPoint tempRemoteEP = stRead.RemoteEndPoint;
IPEndPoint tempRemoteIP = (IPEndPoint)tempRemoteEP;
IPHostEntry host = Dns.GetHostByAddress(tempRemoteIP.Address);
string sHostName = host.HostName;
while (bListener)
{
stRead.Send(Encoding.ASCII.GetBytes("Hello"));
string sTime = DateTime.Now.ToShortTimeString();
Byte[] byRead = new Byte[1024];
int iRead = stRead.ReceiveFrom(byRead, ref tempRemoteEP);
Byte[] byText = new Byte[iRead];
Array.Copy(byRead, 0, byText, 0, iRead);
string line = System.Text.Encoding.Default.GetString(byRead);
}
}
catch (System.Security.SecurityException)
{
//監聽失敗
}
}
thThreadRead = new Thread(new ThreadStart(Listen));
thThreadRead.Start();
2.簡單客戶端
/*
using System.Data;
using System.Net.Sockets;
using System.Net;
*/
private static IPEndPoint dateTimeHost;
string hostIPString=%%1;
string hostPortString=%%2;
IPAddress hostIP=IPAddress.Parse(hostIPString);
dateTimeHost=new IPEndPoint(hostIP,Int32.Parse(hostPortString));
Socket conn=new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
conn.Connect(dateTimeHost);
int bytes=0;
Byte[] RecvBytes=new Byte[256];
bytes=conn.Receive(RecvBytes,RecvBytes.Length,0);
string RecvString=Encoding.ASCII.GetString(RecvBytes,0,bytes);
Console.WriteLine(RecvString);
conn.Shutdown(SocketShutdown.Both);
conn.Close();
3.獲得本機IP
//using System.Net;
IPAddress[] addressList = Dns.GetHostByName(Dns.GetHostName()).AddressList;
string %%1=null;
for (int i = 0; i < addressList.Length; i++)
{
%%1 += addressList[i].ToString();
}
4.端對端通信
/*
using System.Net;
using System.Net.Sockets;
*/
UdpClient client=new UdpClient(%%2);
IPAddress a=IPAddress.Parse("127001");
IPEndPoint receivePoint=new IPEndPoint(a,%%2);
IPAddress HostIP=null;
byte[] sendData=Encoding.UTF8.GetBytes(%%3);
byte[] recData;
try{
HostIP=IPAddress.Parse(%%1);
}
catch {
recData=client.Receive(ref receivePoint);
%%3=Encoding.UTF8.GetString(recData);
client.Send(sendData,sendData.Length,%%4,%%2);
client.Close();
}
IPEndPoint host=new IPEndPoint(HostIP,%%2);
recData=client.Receive(ref receivePoint);
%%3=Encoding.UTF8.GetString(recData);
client.Close();
5.點對點通信
/*
using System.Data;
using System.Net.Sockets;
using System.Net;
using System.Threading;
*/
Thread th;
TcpListener tpListen1;
bool listenerRun=true;
NetworkStream tcpStream;
StreamWriter reqStreamW;
TcpClient tcpc;
Socket skSocket;
protected void Listen()
{
try{
tpListen1=new TcpListener(Int32.Parse(%%2));
tpListen1.Start();
skSocket=tpListen1.AcceptSocket();
EndPoint tempRemoteEP=skSocket.RemoteEndPoint;
IPEndPoint tempRemoteIP=(IPEndPoint)tempRemoteEP;
IPHostEntry host=Dns.GetHostByAddress(tempRemoteIP.Address);
string HostName=host.HostName;
while(listenerRun)
{
Byte[] stream=new Byte[1024];
string time=DateTime.Now.ToString();
int i=skSocket.ReceiveFrom(stream,ref tempRemoteEP);
string %%5=Encoding.UTF8.GetString(stream);
//指定編碼,從緩沖區中解析出內容
//time+" "+HostName+":"
}
}
catch(Security.SecurityException)
{
//防火牆安全錯誤!
}
try{
string sMsg=%%4;
string MyName=Dns.GetHostName();
reqStreamW=new StreamWriter(tcpStream);
reqStreamW.Write(sMsg);
reqStreamW.Flush();
string time=DateTime.Now.ToString();
//顯示傳送的數據和時間
//time+" "+MyName+":"
//sMsg
}
catch(Exception)
{
//無法發送信息到目標計算機!
}
protected override void Dispose(bool disposing)
{
try{
listenerRun=false;
th.Abort();
th=null;
tpListen1.Stop();
skSocket.Close();
tcpc.Close();
}
catch{}
if(disposing && component!=null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
❸ 哪裡有自學編程的視頻
無憂蜀生網主要之做互聯網IT技術社區,上面有許多免費的網路編程視頻入門,提升教程。
網站簡介
無憂蜀生網是西南地區專業的開放式IT教育平台,大學生專屬領地/學習就業幫扶平台,致力為IT人員打造良好學習、交流環境及展示空間。無憂蜀生社區讓你學習無憂、生活無憂、升職更無憂!
用戶群體
在校計算機相關專業老師/學生
應往屆技術相關畢業生
各公司技術員
計算機相關專業愛好者
選擇無憂蜀生網的N個理由
IT資訊每日首發——業界訊息盡在掌握
上千IT視頻教程免費學習
軟體園上百家知名企業招聘信息——好工作快人一步
項目經理在線答疑
資深職業規劃師做就業指導,職場發展規劃
娛樂視頻|星座測試,趣味無止境
❹ 求C++網路程序設計這方面的視頻教程~!
《VC++從入門到精通視頻教程》由孫鑫老師錄制
http://www.pconline.com.cn/pce/empolder/gj/vc/0607/820674.html
其中有一章:SOCKET網路編程
❺ 有沒有網路編程的教學視頻呀
矽谷學院有全套視頻教程
❻ C#基於VS2005編程入門到精通開發視頻教程哪裡有
視頻標題 001.C#概述 002.MSDN的安裝與使用 003.visual Studio 2005安裝與卸載 004.熟悉Visual Studio 2005開發環境 005.程序編寫規范 006.初始C#程序結構 007.編寫第一個C#程序 008.變數操作 009.變數概述 010.變數類型 011.常量的使用 012.表達式 013.運算符 014.運算符優先順序 015.字元串String的使用 016.字元類Char的使用 017.可變字元串類StringBuilder的使用1 018.ArrayList類 019.二維數組的聲明和使用 020.哈希表Hashtable 021.數組的基本操作 022.數組概述 023.迭代語句的使用 024.跳轉語句的使用 025.選擇語句的使用 026.一維數組的聲明和使用 027.方法 028.結構 029.類 030.類的面向對象特性 031.介面 032.密封類與密封方法 033.抽象類與抽象方法 034.異常處理概述 035.異常處理語句及使用 036.MDI窗體的使用 087.網路編程基礎 088.在C#中操作注冊表 089.線程的基本操作 090.冊表概述 091.線程簡介 092.注冊表應用 093.Windows Installer介紹 094.創建Windows安裝項目 095.製作Windows安裝程序 096.創建項目 097.登錄模塊設計 098.公共類設計 099.開發常見問題與解決 100.人事檔案管理模塊設計 101.人事資料查詢模塊設計 102.資料庫維護模塊設計 103.資料庫與數據表設計 104.通訊錄模塊設計 105.系統打包部署 106.系統分析 107.系統設計 108.系統運行環境 109.系統主窗體設計 110.用戶設置模塊設計 111.運行項目 教程地址: http://www.henanfilm.cn/view-10912-1.html
❼ 我想學網路編程,哪裡有視頻教程
電驢上邊資源很多。Java .net都有。
❽ 我怎樣自學電腦編程
編程嘛,我其實和你差不多,剛開始學,本來是打算學JAVA的,可接觸PHP網路編程後就愛不釋手了。學了個把月,一直都是在用視頻教程,如果你需要的話,我可以把視頻教程介紹給你:
清華大學計算機本科及研究生全套視頻教程:
http://lib.verycd.com/2005/06/05/0000053033.html(這是文字加視頻版的)
如果需要其它的視頻教程或者電子書的話,可以聯系我。