[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: An Ethernet question
- Subject: Re: An Ethernet question
- From: i.bird@xxxx
- Date: Thu, 11 Sep 2003 12:15:00 +0000
Thanks guys, this helps a lot
More later on I expect. Gotta sus the joys of data and address buses now.
Ian
Original Message:
-----------------
From: Stuart Booth <a
href="/group/xAP_developer/post?postID=XjXL4mHjL0_fhw4QSRG40cQmmzz6XkFVB69SOOlBwCQEiX-yUHVGfYzybAX6a_Zf-hskkZKN29k3Aog3">lists@x...</a>
Date: Thu, 11 Sep 2003 10:49:22 +0100
To: <a
href="/group/xAP_developer/post?postID=HHJY1Ixlv5195A21GENunf51NYSOlsfJenixS1ZhlK9eJSNKeceecShVW-iuH3rA1l0bAd0uOHg7zwT-RWo9Wn1wWkwZsvU">xAP_developer@xxxxxxx</a>
Subject: Re: [xAP_developer] An Ethernet question
On Thu, 11 Sep 2003 08:52:54 -0000, "Ian Bird" <<a
href="/group/xAP_developer/post?postID=O8PFr8nOVG4HQ1DgVCoVUkW_LrLMa6CwHE3zJ31nRF2PLbp90tqEyJqVgb5m2VF0ArGTc0bYIf8iW5mlUA">Ian@M...</a>>
wrote:
>If so, when writing a PC based application do you somehow specify the
>method used to send a xAP message in the program?
I do. My framework code to send a message goes something like this:
private void Connect ()
{
int port = xAPTransportInfo.GetListeningPort();
IPEndPoint ep = new IPEndPoint(IPAddress.Broadcast, port);
UdpClient m_datagram = new UdpClient();
m_datagram.Connect(ep);
} // End of Connect
public void Send (xAPMessage message)
{
byte[] msg = Encoding.ASCII.GetBytes(message.ToRawMessageString());
m_datagram.Send(msg, msg.Length);
} // End of Send
So it's all encapsulated in the UdpClient class of the Microsoft .net
Framework. More than that I haven't really needed to know. There are
TcpClient classes as well which I use to communicate directly with my
TiVo's YAC listener.
S
--
Stuart Booth
xAPFramework.net - a reusable xAP framework for .net
<a href="http://www.xapframework.net/">http://www.xapframework.net/</a>
<a
href="/group/xAP_developer/post?postID=2g9srdSxdW6AfhPRZvCCiI9rWqOi1nxoHpboSG-PA5YBM3cWb82pUs2jkfvPnYthleWclTvm28agCQIdVfn09Uk">stuart@x...</a>
To unsubscribe from this group, send an email to:
<a
href="/group/xAP_developer/post?postID=crs7TGLZ0UQsf9RlCZW6IuyLJ8a752hSYxI5OzRokggmut1vOX1BqWSuxgfstg4WnCFrcJUup_b5p_0_Q50o5R3GLocYvw8warWBpHOsqEtjRhE">xAP_developer-unsubscribe@xxxxxxx</a>
Your use of Yahoo! Groups is subject to <a href="http://docs.yahoo.com/info/terms/">http://docs.yahoo.com/info/terms/</a>
--------------------------------------------------------------------
mail2web - Check your email from the web at
<a href="http://mail2web.com/">http://mail2web.com/</a> .
xAP_Development Main Index |
xAP_Development Thread Index |
xAP_Development Home |
Archives Home
|