TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Saumya Agarwal
NA
82
525
Communication for sending data between pocket pc and pc
Mar 21 2018 5:36 AM
Hi,
I am sending data over wifi through socket connection to communicate between pocket pc and pc but unable to do it.
The connection is refused. The same i can send when connecting via bluetooth.
My code for connecting is as follows:
Client: Pocket pc
RemoteClient remoteClient =
new
RemoteClient(ipaddress, Int32.Parse(port));
remoteClient.myEvent +=
new
RemoteClient.EventDelegate(
this
.RemoteClient_MessageReceived);
remoteClient.SendMessage(tag.TagID);
Server:
/ listen on port m_serverPort
TcpListener tcpServer =
new
TcpListener(m_serverPort);
// report where we are
IPHostEntry thisHost = Dns.Resolve(Dns.GetHostName());
ShowMessage(String.Format(
"Host {0} listening on {1}, port {2}"
,
thisHost.HostName, thisHost.AddressList[0].ToString(), m_serverPort));
tcpServer.Start();
TcpClient clientConn = tcpServer.AcceptTcpClient();
// Send back a message
response = m_sendMessageText;
Please let me know for any other details needed.
Help...urgent!!!
Thanks,
Saumya
Reply
Answers (
1
)
create TreeView from entity framework using mvc 5
How to run angular 5 app from visual studio