How To Read Data using Ip Address

Posted by DATT OZA on Stack Overflow See other posts from Stack Overflow or by DATT OZA
Published on 2010-03-24T08:24:58Z Indexed on 2010/03/24 8:33 UTC
Read the original article Hit count: 304

Filed under:
|
|

I am doing punch card reader programming..

Establish connection with BioAccess V2 Device...

socket successdully connected but data can't read...

so how to read data ?

Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream,ProtocolType.Tcp);  
var ipaddress = IPAddress.Parse("192.168.000.111");  
IPAddress add = new IPAddress(ipaddress.GetAddressBytes());    
EndPoint ep = new IPEndPoint(add, 5005);  
sock.Connect(ep);  
if(sock.connected)
{

}

now what i have to do in IF BLOCK to read data ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about socket