• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Milad · Mar 22, 2010 at 11:24 AM · programmingsocket

Socket programming in unity

Hi, How can i socket programming in unity?

i want have a server and client program.then control my character with my server program that is in server system and my game is in client system.

so thanks.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Cyclops · Apr 29, 2010 at 04:07 PM 0
Share

@$$anonymous$$ilad, if you get a good answer, please upvote it, and/or checkmark it, thanks.

3 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by runevision · Mar 23, 2010 at 02:37 PM

Socket programming is too complex a topic to go into in details here, but there are lots of materials on the Net on how to do socket programming in C#:

http://www.google.com/search?q=socket+programming

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Milad · Mar 23, 2010 at 03:58 PM 0
Share

thanks. but i have write my socket code.i want know how can i use it in unity?

avatar image runevision ♦♦ · Mar 23, 2010 at 04:19 PM 0
Share

If it was written in C# you should be able to just use it, since Unity supports C# through $$anonymous$$ono. Can you be more specific on what you want to know exactly?

avatar image
0

Answer by Zealander · Mar 22, 2010 at 08:24 PM

Try SmartFoxServer

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Milad · Mar 23, 2010 at 11:25 AM 0
Share

Can you discuss more about it please?

so thanks.

avatar image
0

Answer by Ashkan_gc · Apr 27, 2010 at 07:36 PM

just write your client code in your unity game. mono fully supports .net sockets. use components or normal classes and write your code in them.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Milad · Apr 28, 2010 at 10:11 AM 0
Share

Yes i know ashkan.i did that.now i know how use it.thanks dear friend.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Multiple Cars not working 1 Answer

Calling function in a script based on raycast hit 1 Answer

Angry Birds like rank Star System 2 Answers

programming : unity events 0 Answers

How to add transparency to a shader!? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges