Click here to Skip to main content
15,887,746 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: asp:Menu select based on URL Pin
Member 977403922-Oct-14 3:49
Member 977403922-Oct-14 3:49 
QuestionString to XML convert Pin
byka24-Sep-14 7:40
byka24-Sep-14 7:40 
AnswerRe: String to XML convert Pin
Richard MacCutchan24-Sep-14 21:49
mveRichard MacCutchan24-Sep-14 21:49 
AnswerRe: String to XML convert Pin
Swinkaran2-Oct-14 12:28
professionalSwinkaran2-Oct-14 12:28 
QuestionUpdating on the same Datagrid Pin
VB Developer23-Sep-14 1:07
VB Developer23-Sep-14 1:07 
AnswerRe: Updating on the same Datagrid Pin
Richard MacCutchan23-Sep-14 1:44
mveRichard MacCutchan23-Sep-14 1:44 
AnswerRe: Updating on the same Datagrid Pin
Sibeesh KV6-Oct-14 0:40
professionalSibeesh KV6-Oct-14 0:40 
QuestionRFID Program Pin
Arief Hidayat22-Sep-14 3:38
Arief Hidayat22-Sep-14 3:38 
Hi,

i have a problem for making rfid program with socket in c#.

i try this code :


socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
IPAddress[] ip = Dns.GetHostAddresses(ipLoc);
IPEndPoint ep = new IPEndPoint(ip[0],23);
socket.Connect(ep);
Console.WriteLine("Connected");


char open1 = (char)13;
char open2 = (char)10;

//char[] myArray = new char[] { open1, open2 };

Byte[] sendBytes2 = Encoding.ASCII.GetBytes(Convert.ToString(open1));
Byte[] sendBytes = Encoding.ASCII.GetBytes(Convert.ToString(open2));
//Byte[] sendBytes2 = Encoding.ASCII.GetBytes("10");
//socket.Send(sendBytes);
socket.Send(sendBytes2);
socket.Send(sendBytes);
count = socket.Receive(buffer);
Console.WriteLine(System.Text.Encoding.ASCII.GetString(buffer, 0, count));

//socket.Shutdown(SocketShutdown.Both);

socket.Disconnect(true);
socket.Close();


but i not have a result.. rfid card not read in console and gate cannot to open..
i hope all of you can help my problem..

thanks very much..
AnswerRe: RFID Program Pin
Rob Philpott22-Sep-14 5:51
Rob Philpott22-Sep-14 5:51 
SuggestionRe: RFID Program Pin
George Jonsson23-Sep-14 5:39
professionalGeorge Jonsson23-Sep-14 5:39 
QuestionInformation about .Net Technlogy. Pin
Member 1109708520-Sep-14 7:28
Member 1109708520-Sep-14 7:28 
JokeRe: Information about .Net Technlogy. Pin
Kornfeld Eliyahu Peter20-Sep-14 8:27
professionalKornfeld Eliyahu Peter20-Sep-14 8:27 
AnswerRe: Information about .Net Technlogy. Pin
Dave Kreskowiak20-Sep-14 12:26
mveDave Kreskowiak20-Sep-14 12:26 
AnswerRe: Information about .Net Technlogy. Pin
Swinkaran1-Oct-14 13:11
professionalSwinkaran1-Oct-14 13:11 
QuestionDatabase first Entity framework with repository pattern Pin
Swinkaran17-Sep-14 4:12
professionalSwinkaran17-Sep-14 4:12 
AnswerRe: Database first Entity framework with repository pattern Pin
Pete O'Hanlon17-Sep-14 4:38
mvePete O'Hanlon17-Sep-14 4:38 
AnswerRe: Database first Entity framework with repository pattern Pin
Matt U.30-Sep-14 5:23
Matt U.30-Sep-14 5:23 
QuestionCompare 2 tables Pin
byka17-Sep-14 1:52
byka17-Sep-14 1:52 
AnswerRe: Compare 2 tables Pin
Eddy Vluggen17-Sep-14 5:15
professionalEddy Vluggen17-Sep-14 5:15 
AnswerRe: Compare 2 tables Pin
Sibeesh KV6-Oct-14 0:43
professionalSibeesh KV6-Oct-14 0:43 
Questionmessage.show Pin
geparl15-Sep-14 7:23
geparl15-Sep-14 7:23 
AnswerRe: message.show Pin
Richard MacCutchan15-Sep-14 21:05
mveRichard MacCutchan15-Sep-14 21:05 
GeneralRe: message.show Pin
geparl17-Sep-14 4:03
geparl17-Sep-14 4:03 
QuestionOutput to memorystream Pin
byka12-Sep-14 2:35
byka12-Sep-14 2:35 
AnswerRe: Output to memorystream Pin
jschell13-Sep-14 6:44
jschell13-Sep-14 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.