Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Multiple Cars not working 1 Answer

Enable secondary maps in simple shader 0 Answers

Problem with discovering if a character is on top or not 0 Answers

alphaKeys in linerenderer gradient not being set 1 Answer

Using C++/CLR classes in C# plugins - GetExceptionPointers not implemented exception 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges