Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

interesting socket question

Status
Not open for further replies.

xavstone

Technical User
Apr 12, 2005
33
GB
Hi all,

I have some questions about socket programming in c#, they may seem really naive but i have never written an application that runs on a web server before, and i am new to .net. Well here goes...

1. I need to write a simple server socket app that will sit on a web server and communicate with clients asynchronously. I know how to write it, but i cant figure out how to host it locally to test it in vs with the web application before i publish the site. Is there a way to launch it locally when i debug? I need to use TCP so what IP and port would i use for testing the app if i were running it locally?

2. The client will connect to the server socket via a java applet. This is not ideal, i would like to use c#/.net throughout but i need to use direct3d and as i understand it managed directx cannot be used via browsers at the moment? Is there any client side application stuff at all in the .net box o tricks that could handle client side directx via a browser? I dont mind java but working between netbeans and vs is very difficult for me.

Incase you are wondering what im doing i have made some 3d engine classes in c# and am experimenting with browser 3d, i am trying to stream euler coordinates in real time over ie.

Thanks in advance...

Ben
 
A TCP/IP server or client does not run as a service. it is an app like any other but binds an IP to a socket AFAIK. it can run from your desktop if you wish? A web service runs in a server that is listening to TCP/IP .... please correct someone if i am wrong.

Age is a consequence of experience
 
sorry i should add: the IP address could be localhost(127.0.0.1)if all done on same pc if not your network IP and the port should be one that is not already in use but pref a high number like 8000(to see which ports in use at dos prompt > netstat -a)

and the second part of your Q.. I am unable to help with that sorry.
Good Luck!

Age is a consequence of experience
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top